
#define _SCB_BASE       (0xE000E010UL)
#define _SYSTICK_CTRL   (*(unsigned long *)(_SCB_BASE + 0x0))
#define _SYSTICK_LOAD   (*(unsigned long *)(_SCB_BASE + 0x4))
#define _SYSTICK_VAL    (*(unsigned long *)(_SCB_BASE + 0x8))
#define _SYSTICK_CALIB  (*(unsigned long *)(_SCB_BASE + 0xC))
#define _SYSTICK_PRI    (*(unsigned char *)(0xE000ED23UL))

void le_board_systick_config(unsigned long ticks)
{
    _SYSTICK_LOAD = ticks - 1; 
    _SYSTICK_PRI = 0xFF;
    _SYSTICK_VAL  = 0;
    _SYSTICK_CTRL = 0x07; 
}

